<?php

function t1(){
	$reply = 25000;
	if (substr($reply, 0, 3) != 250) {
		throw new \Exception('Error: EHLO not accepted from server!');
	}

}

//var_dump(t1());
try
 {
 t1();
 //If the exception is thrown, this text will not be shown
 echo 'If you see this, the number is 1 or below';
 }

//捕获异常
catch(Exception $e)
 {
  echo 2;
 }

//var_dump(error_get_last());